Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(typescript): add transformers factory. #1668

Merged
merged 1 commit into from
Sep 22, 2024

Conversation

Haringat
Copy link
Contributor

Rollup Plugin Name: typescript

This PR contains:

  • bugfix
  • feature
  • refactor
  • documentation
  • other

Are tests included?

  • yes (bugfixes and features will not be merged without tests)
  • no

Breaking Changes?

  • yes (breaking changes will not be merged unless absolutely necessary)
  • no

If yes, then include "BREAKING CHANGES:" in the first commit message body, followed by a description of what is breaking.

List any relevant issue numbers:

resolves #1667

Description

This allows creating custom transformers in the typescript plugin together ahead-of-time in a factory function. This allows for shorter rollup configs in certain cases and enables using similar factory-style transformers like the angular compiler API.

This also cleans up a few places minor internals in the typescript plugin (missing parameter descriptions, deprecated APIs, generic identifiers)

@Haringat
Copy link
Contributor Author

@shellscape Would you mind reviewing this?

@shellscape
Copy link
Collaborator

@Haringat I'm backed up at work. will be end of the week before I circle back to open source.

@Haringat
Copy link
Contributor Author

@shellscape what calendar are we going with?

@shellscape
Copy link
Collaborator

I'm using the Julian calendar.

@shellscape shellscape changed the title feat(typescript): add transformers factory feat(typescript): add transformers factory. Sep 22, 2024
Copy link
Collaborator

@shellscape shellscape left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@shellscape shellscape merged commit 2c09b57 into rollup:master Sep 22, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Typescript plugin transformers API design is incompatible with angular compiler
2 participants